package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;



@Controller
public class IndexController {

    @GetMapping("/index")
    public String index(ModelMap modelMap) {
        modelMap.addAttribute("msg", "Hello , Lichuandi !");
        //index是thymeleaf， index1是FreeMarker
        return "index";

    }
}
